<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .my-animation-1 {
            width: 200px;
            height: 200px;
            background-color: red;
            animation: myfirst 5s infinite;
        }
        
        @keyframes myfirst {
            0% {
                background-color: red;
            }
            20% {
                background-color: green;
            }
            60% {
                background-color: yellow;
            }
            80% {
                color: red;
            }
        }
        
        .my-animation-2 {
            width: 200px;
            height: 200px;
            position: relative;
            background-color: blue;
            animation: mymove 5s infinite;
        }
        
        @keyframes mymove {
            from {
                left: 0px;
            }
            to {
                left: 300px;
            }
        }
    </style>
</head>

<body>
    <div class="my-animation-1">

    </div>
    <div class="my-animation-2">

    </div>
</body>

</html>